<?php

/**
 * session actions.
 *
 * @package    wills
 * @subpackage session
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class SessionActions extends sfActions
{
  public function executeNew(sfWebRequest $request)
  {
	$this->areas = Doctrine::getTable('Area')->getHomepageList();
    Wills::initLoginForm($this, new SessionForm());
  }

  public function executeCreate(sfWebRequest $request)
  {
	$this->areas = Doctrine::getTable('Area')->getHomepageList();
    Wills::processLogin($this, new SessionForm());
  }

  public function executeDestroy(sfWebRequest $request)
  {
	  $this->areas = Doctrine::getTable('Area')->getHomepageList();
  }

  public function executeDelete(sfRequest $request)
  {
    Wills::processLogout($this);
  }
}
